<template>
	<page-loading :show='pageLoading'>
		<view>
			<view class="tips" v-show="getExamine.length!==0">成员审核申请</view>
			<view class="box" v-show="getExamine.length!==0">
				<scroll-view :scroll-y="isScroll" @scrolltolower='scrolltolower' :style="{height:height+'rpx'}">
					<view class="line" @click="goPage()" v-for="(item,index) in getExamine" :key='index'>
						<view class="left">
							<!-- 头像 -->
							<image v-show="item.headImg !== ''" :src='item.headImg' mode="aspectFill"></image>
							<!-- 头像 默认图 -->
							<i-icon v-show="item.headImg === ''" icon="iconmorentouxiang" type="multiple" size="70rpx" color="rgb(208,208,208)"></i-icon>
							<!-- <i-icon icon="iconmorentouxiang" type="multiple" size="90rpx" color="rgb(208,208,208)"></i-icon> -->
						</view>
						<view class="center" style="line-height: 65rpx;">
							<view class="name">{{item.userName}}</view>
							<view class="tel">{{item.mobile}}</view>
						</view>
						<view class="right">
							<view class="btn" @click="updateExamineUserRefuse(item.id)">拒绝</view>
							<view class="btn" @click="updateExamineUserAgree(item.id)">同意</view>
						</view>
					</view>
					<u-loadmore :status="statuss" :margin-bottom="200" @loadmore="more2" />
				</scroll-view>
			</view>
			<view class="tips">成员列表</view>
			<view class="box">
				<view class="line" v-for="(item,index) in menberList" :key="index" @click="goInfo(item)">
					<view class="left">
						<!-- 头像 -->
						<image v-if="item.isRegister" :src="item.headImg?item.headImg+'!user':'https://files.yzsheng.com/AccountDefaultImg/defaultImg.png'" mode="aspectFill"></image>
						<!-- 头像 默认图 -->
						<image v-else src="https://files.yzsheng.com/AccountDefaultImg/defaultImg.png"></image>
					</view>
					<view class="center">
						<view class="name">{{item.userName?item.userName:'未命名'}}</view>
						<view class="grade">{{item.isRegister?item.roleName:'未注册'}}</view>
					</view>
					<view class="right">{{item.jobName}}</view>
				</view>
			</view>
			<u-loadmore :status="status" :margin-bottom="200" @loadmore="more" />
			<view class="footer flex flex-ai-c">
				<view class="btn flex flex-jc-c flex-ai-c" @click="addMenber">
					<!-- <view class="flex flex-ai-c" style="font-size: 32rpx;"> -->
						<view><i-icon icon="icontianjia_1" size="40rpx"></i-icon></view>
						<view style="margin-left: 10rpx;margin-bottom: 8rpx;">添加新成员</view>
					<!-- </view> -->
				</view>
			</view>

		</view>
	</page-loading>
</template>
<script src="./menber.js"></script>
<style src="./menber.scss" lang="scss"></style>
